﻿using Digitalmes.Signals;
using System;

namespace Digitalmes.Services.Data
{
    /// <summary>
    /// 检验首站,重复进站,上工站状态
    /// </summary>
    public class EntryService : AbstractDataService<EntrySignal>,ITransient
    {
        public EntryService(IServiceProvider serviceProvider) : base(serviceProvider)
        {
        }

        public override async Task<ServiceResponse> GetServiceResponse(EntrySignal signal)
        {
            var response= new ServiceResponse();    

            await Task.Delay(10000);   
            try
            {
                if (signal is EntrySignal entry)
                {

                }

            }
            catch (Exception ex)
            {
                 response.Success = false;
                 response.Exception = ex;
            }

            return response;
        }
    }
}
